package com.cskaoyan.mapper;

import com.cskaoyan.bean.User;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {

    // 一对一
    // 分次查询
    // select * from user where id = ?
    // select * from user_detail where user_id = ?
    User selectUserByIdWithUserDetail(@Param("id") Integer id);


    // 连接查询
    User selectUserByIdWithUserDedatilUseCrossQuery(@Param("id") Integer id);
}
